//
//  ICMGetCarSearchView.h
//  ICrEAM
//
//  Created by kuroro on 16/11/1.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMGetCarSearchTableViewCell.h"

@protocol ICMGetCarSearchViewDelegate <NSObject>
@optional
- (void)didClickSearchViewWithRECEPTION_NO:(NSString *)RECEPTION_NO andIndex:(NSInteger )Index;
- (void)didClickCellWithSearchModel:(ICMGetCarSearchModel *)searchModel;
//加载更多数据
- (void)loadMoreDataWithPage:(int)pageNo WithText:(NSString *)condition;
@end

@interface ICMGetCarSearchView : UIView<UITableViewDelegate,UITableViewDataSource,ICMGetCarSearchTableViewCellDelegate>
@property (nonatomic, strong)NSString *condition;

//创建
+ (instancetype)creatICMGetCarSearchViewWithFrame:(CGRect)frame dataArray:(NSArray *)dataArray;
//查询
- (void)setModels:(NSArray *)models;

@property (nonatomic, weak) id<ICMGetCarSearchViewDelegate>delegate;

//加载跟多数据
- (void)loadMoreDataWithData:(id)data;

@end
